<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <link rel="stylesheet" href="/phpcx/2017.5.17/wish/Public/admin/Css/public.css">
  <link rel="stylesheet" href="/phpcx/2017.5.17/wish/Public/admin/Css/wish.css">
  <script type="text/javascript" src="/phpcx/2017.5.17/wish/Public/admin/Js/jquery-1.7.2.min.js"></script>
  <script type="text/javascript" src="/phpcx/2017.5.17/wish/Public/admin/Js/wish.js"></script>
 </head>
 <body>
     <div id="box">
         <h1>愿望列表</h1>
     </div>
     <form method="get">
     <div id="search">
         请输入查询关键字：
         <input type="text" name="sname" value="<?php echo ($sname); ?>"></input>
         <select name="sop" class="sop">
             <option 
             <?php if(($sop) == "1"): ?>selected="selected"<?php endif; ?>
            value="1">按发布者的姓名</option>
             <option 
             <?php if(($sop) == "2"): ?>selected="selected"<?php endif; ?>  
             value="2">按发布愿望内容</option>
         </select>
         <input type="submit" value="搜索"></input>
     </div>
     </form>
     <form action="<?php echo U('Admin/WishManage/del','','');?>" method="post">
         <table class="table" id='list'>
		<tr>
                        <th  style="width:3%"><input type="checkbox" id='all'></input></th>
                        <th  style="width:5%">ID</th>
			<th style="width:10%">发布者</th>
			<th>内容</th>
			<th style="width:15%">发布时间</th>
			<th style="width:8%">操作</th>
		</tr>

		<?php if(is_array($wish)): foreach($wish as $key=>$v): ?><tr>    
                            <td><input type="checkbox" value="<?php echo ($v["id"]); ?>" name="id[]"></input></td>
				<td><?php echo ($v["id"]); ?></td>
				<td><?php echo ($v["name"]); ?></td>
				<td><?php echo ($v["content"]); ?></td>
				<td><?php echo (date('Y-m-d H:i',strtotime($v["addtime"]))); ?></td>
				<td><a href="<?php echo U('Admin/wishManage/del',array('id' => $v['id'])),'';?>">删除</a></td>
			</tr><?php endforeach; endif; ?>
		<tr>
			<td colspan='6' align='center'>
				<?php echo ($page); ?>
			</td>
		</tr>
            <tr>
			<td colspan='6' align='center'>
                            <input type="submit" value="删除所选"></input>
                            <input type="submit" value="全选"></input>
			</td>
		</tr>
	</table>
     </form>
 </body>
</html>